#ifndef CONFIGSET_H
#define CONFIGSET_H

#include <QWidget>

namespace Ui {
class ConfigSet;
}

class ConfigSet : public QWidget
{
    Q_OBJECT

public:
    enum Page{
        Client = 0,
        Server = 1
    };
    explicit ConfigSet(QWidget *parent = 0);
    ~ConfigSet();

    // 显示对应的用户的设置窗口
    void showPage(Page p);

signals:
    void goback();

private slots:
    void on_okBtn_clicked();

    void on_cancelBtn_clicked();

    void on_commitBtn_clicked();

    void on_cancel_s_Btn_clicked();

private:
    Ui::ConfigSet *ui;
};

#endif // CONFIGSET_H
